// WorkerQueryDlg.cpp : implementation file
//

#include "stdafx.h"
#include "library.h"
#include "WorkerQueryDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CWorkerQueryDlg dialog


CWorkerQueryDlg::CWorkerQueryDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CWorkerQueryDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CWorkerQueryDlg)
	m_strID = _T("");
	//}}AFX_DATA_INIT
}


void CWorkerQueryDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CWorkerQueryDlg)
	DDX_Text(pDX, IDC_WORKER_QUERY_EDIT, m_strID);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CWorkerQueryDlg, CDialog)
	//{{AFX_MSG_MAP(CWorkerQueryDlg)
	ON_BN_CLICKED(IDC_WORKER_QUERY_OK_BUTTON, OnWorkerQueryOkButton)
	ON_BN_CLICKED(IDC_WORKER_QUERY_CANCEL_BUTTON, OnWorkerQueryCancelButton)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWorkerQueryDlg message handlers

void CWorkerQueryDlg::OnWorkerQueryOkButton() 
{
	// TODO: Add your control notification handler code here
	UpdateData(true);
	m_bState = TRUE;
	CDialog::OnOK();
}

void CWorkerQueryDlg::OnWorkerQueryCancelButton() 
{
	// TODO: Add your control notification handler code here
	m_bState = FALSE;
	CDialog::OnCancel();
}

int CWorkerQueryDlg::DoModal() 
{
	// TODO: Add your specialized code here and/or call the base class
	CDialog::DoModal();
	return m_bState;
}
